package com.platform.dao;
import com.platform.base.BaseMapper;
import com.platform.pojo.Psac0001;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface Psac0001Mapper extends BaseMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Psac0001 record);

    int insertSelective(Psac0001 record);

    Psac0001 selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Psac0001 record);

    int updateByPrimaryKey(Psac0001 record);


    Psac0001 selectByUserName(String userName);

    List<Map> selectByParamMap(Map paramMap);

    Map selectById(Integer id);

    Map selectByUName(String uName);

    int selectVersionById(@Param(value = "id") Integer id);

    Map selectInfoByUserName(@Param(value = "userName") String userName);

    int updateSatusById(@Param(value = "id") Integer id,
                        @Param(value = "status") Integer status);

    int updateNameByUserName(@Param(value = "newName") String newName,@Param(value = "userName") String userName);
}